import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      name: 'Login',
      component: require('@/pages/Login').default
    },
    {
      path: '/page-a',
      name: 'PageA',
      component: require('@/pages/PageA').default
    },
    {
      path: '/page-b',
      name: 'PageB',
      component: require('@/pages/PageB').default
    },
    {
      path: '/landing-page',
      name: 'landing-page',
      component: require('@/components/LandingPage').default
    },
    {
      path: '/ExamList',
      name: 'ExamList',
      component: require('@/pages/ExamList').default
    },
    {
      path: '/QuestionsList/:id?/:subjectVal?/:teacherType?',
      // path: '/',
      name: 'QuestionsList',
      component: require('@/pages/QuestionsList').default
    },
    {
      path: '/SubjectList',
      name: 'SubjectList',
      component: require('@/pages/SubjectList').default
    },
    {
      path: '*',
      redirect: '/'
    }
  ]
})
